package org.lfh.wintersun.web.secondKill.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lfh.wintersun.common.base.BaseEntity;
import org.springframework.data.annotation.Id;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 秒杀优惠券表，与优惠券是一对一关系(SecondKillVoucherExt) 表实体类
 *
 * @author lfh
 * @since 2025-04-12 23:06:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("second_kill_voucher_ext")
public class SecondKillVoucherExtEntity extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 关联的优惠券的id
     */
    private Long voucherId;
    /**
     * 库存
     */
    private Integer stock;
    /**
     * 生效时间
     */
    private LocalDateTime beginTime;
    /**
     * 失效时间
     */
    private LocalDateTime endTime;
}
